package cn.xiaohui;
/*
 * 定义测试类
 */
public class Task02Test {
	  public static void main(String[] args) {
		  //交通任务对象实例化
	        SendTask task = new SendTask("Hyx660235",76.34);
	        //调用送前准备方法
	        task.sendBefore();
	        System.out.println("==========================");
	        Ztransportation t = new Ztransportation("Z025","null","null");
	         //创建交通工具对象
	        Phone p = new Phone();
	        task.send(t, p);
	        System.out.println("==========================");
	        task.sendAfter(t);
	        t.upKeep();
	        
	    }

	}

